home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 76 / MF_UK_76_1.iso / Education Feature / MicroWorlds 2.03 Try Me / MicroWorlds 2.03 Try Me.rsrc / TEXT_740_textpick.txt < prev    next >
Encoding:
Text File  |  1998-05-08  |  692 b   |  18 lines

  1. textpick text-box-name 
  2.  
  3. Reports the text in a randomly-chosen line from the named text box. Lines are delimited by carriage returns (they are logical lines, not physical lines). Textpick can pick empty lines if they‚Äôre in the middle of the text, but not if they‚Äôre at the end of the text. Carriage returns at the end of the text are not taken into account. The line reported by textpick is a long word (a character string including spaces). Use parse to turn a long word into a list.
  4.  
  5. Example:
  6.  
  7. If you have the following text box:
  8.  
  9.      My best friend
  10.   Plato‚Äôs cat is very
  11.   friendly.
  12.   Lucy
  13.  
  14. show textpick "text1
  15. Plato‚Äôs cat is very friendly.
  16.  
  17. Textpick reports one of the "lines."
  18.